'''
计算天数
输入日期2025-05-29，输出这一天是这一年的第几天。
'''

date = input("请输入 年-月-日：").split('-')
year = int(date[0])
month = int(date[1])
day = int(date[2])

days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
result = 0
if(not year % 4 and year % 100) or (not year % 400):
        days[2] += 1
for i in range(month):
    result += days[i]
result += day
print("%d-%d-%d是这一年的第%d天" %(year, month, day, result))